import { postRequest, getRequest,postDownload } from '/@/lib/axios';

export const acidRollingApi = {
  restapi(param: any, config?: any) {
    return getRequest('/api/restapi?name=TCM2280_zonetrk', param, config);
  },
  getAcidEfficiency(param: any, config?: any) {
    return postRequest('/eapi/acideff/getAcidEfficiency', param, config);
  },

  getAcidEfficiencyList(param:any, config?: any){
    return postRequest('/eapi/acideff/getAcidEfficiencyList', param, config);
  },

  getAcidEfficiencyLists(param:any, config?: any){
    return postRequest('/eapi/acideff/getAcidEfficiencyLists', param, config);
  },

  getReWeldList(param:any, config?: any){
    return postRequest('/eapi/acideff/getReWeldList', param, config);
  },

  getSingleRollList(param:any, config?: any){
    return postRequest('/eapi/acideff/getSingleRollList', param, config);
  },
  getEarlyWarning(param:any, config?: any){
    return postRequest('/eapi/acideff/getEarlyWarning', param, config);
  },
  getDiffTime(param:any, config?: any){
    return postRequest('/eapi/acideff/getDiffTime', param, config);
  },

  getRollChange(param:any, config?: any){
    return postRequest('/eapi/acideff/getRollChange', param, config);
  },
  getUncoiler(param:any, config?: any){
    return postRequest('/eapi/acideff/getUncoiler', param, config);
  },
  exportXlsx (param:any){
    return postDownload('/eapi/acideff/exportXlsx ', param);
  },
  exportProductionscheduleXlsx(param:any){
    return postDownload('/eapi/acideff/exportProductionscheduleXlsx ', param);
  },
  saveSingleRoll (param:any, config?: any){
    return postRequest('/eapi/acideff/saveSingleRoll ', param, config);
  },

  findProSpeedAll (param:any, config?: any){
    return postRequest('/eapi/tbProSpeed/findAll ', param, config);
  },

  findProSpeedStatisticsByShift (param:any, config?: any){
    return postRequest('/eapi/tbProSpeed/speedStatisticsByShift ', param, config);
  },
  findProSpeedStatisticsBySteelGrade (param:any, config?: any){
    return postRequest('/eapi/tbProSpeed/speedStatisticsBySteelGrade ', param, config);
  },
  
  // 获取日产量和日产记录
  tcmOutputRecord (param?:any, config?: any){
    return getRequest('/eapi/acideff/tcmOutputRecord', param, config);
  },

  // 轧制速度规则管理接口
  // 查询速度规则分页
  tcmPlSpeedRulesPage (param: any, config?: any) {
    return postRequest('/eapi/tcmPlSpeedRules/tcmPlSpeedRulesPage', param, config);
  },
  // 新增速度规则
  tcmPlSpeedRulesAdd (param: any, config?: any) {
    return postRequest('/eapi/tcmPlSpeedRules/tcmPlSpeedRulesadd', param, config);
  },
  // 修改速度规则
  tcmPlSpeedRulesUpdate (param: any, config?: any) {
    return postRequest('/eapi/tcmPlSpeedRules/tcmPlSpeedRulesupdate', param, config);
  },
  // 删除速度规则
  tcmPlSpeedRulesDelete (param: any, config?: any) {
    return postRequest('/eapi/tcmPlSpeedRules/tcmPlSpeedRulesdelete', param, config);
  },

  // En速度规则管理接口
  // 查询En速度规则分页
  tcmEnSpeedRulesPage (param: any, config?: any) {
    return postRequest('/eapi/tcmEnSpeedRules/tcmEnSpeedRulesPage', param, config);
  },
  // 新增En速度规则
  tcmEnSpeedRulesAdd (param: any, config?: any) {
    return postRequest('/eapi/tcmEnSpeedRules/tcmEnSpeedRulesadd', param, config);
  },
  // 修改En速度规则
  tcmEnSpeedRulesUpdate (param: any, config?: any) {
    return postRequest('/eapi/tcmEnSpeedRules/tcmEnSpeedRulesupdate', param, config);
  },
  // 删除En速度规则
  tcmEnSpeedRulesDelete (param: any, config?: any) {
    return postRequest('/eapi/tcmEnSpeedRules/tcmEnSpeedRulesdelete', param, config);
  },
}; 